package com.tianji.learning.controller;


import com.tianji.learning.domain.po.PointsBoardSeason;
import com.tianji.learning.service.IPointsBoardSeasonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xzh
 * @since 2024-03-18
 */
@RestController
@RequestMapping("/boards/seasons")
@RequiredArgsConstructor(onConstructor_ = {@Lazy})
@Api(tags = "查询新建赛季排行榜相关接口")
public class PointsBoardSeasonController {

    private final IPointsBoardSeasonService pointsBoardSeasonService;

    /**
     * 查询所有赛季名称等信息
     * @return
     */
    @GetMapping("/list")
    @ApiOperation(value = "查询所有赛季名称等信息")
    public List<PointsBoardSeason> queryBoardSeasonList(){
        return pointsBoardSeasonService.queryBoardSeasonList();
    }

}
